
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>DMA方式 · STM32HAL系列教程</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="Atonidas">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-back-to-top-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-theme-lou/lou.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="应用示例.html" />
    
    
    <link rel="prev" href="中断方式.html" />
    

    </head>
    <body>
         

<div class="book">
  <div class="header-inner">
    <!-- LOGO -->
    <div class="logo"></div>
    <span class="title"></span>

    <!-- Search -->
    
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>


    <!-- Nav -->
    <ul class="header-nav">
      <li>
        <a href="https://Gitee.com/atonidas" target="_blank">Gitee</a>
      </li>
    </ul>
  </div>

  <div class="book-summary">
    <div class="book-summary-title">文档目录</div>
     
    <nav role="navigation">


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../软件环境/">
            
                <a href="../软件环境/">
            
                    
                    软件环境
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../软件环境/VScode的使用.html">
            
                <a href="../软件环境/VScode的使用.html">
            
                    
                    VScode快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../软件环境/VSCode插件分享.html">
            
                <a href="../软件环境/VSCode插件分享.html">
            
                    
                    VScode插件分享
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../软件环境/CubeMX简介.html">
            
                <a href="../软件环境/CubeMX简介.html">
            
                    
                    CubeMX简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../软件环境/创建一个工程.html">
            
                <a href="../软件环境/创建一个工程.html">
            
                    
                    创建一个工程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="../软件环境/Git版本管理.html">
            
                <a href="../软件环境/Git版本管理.html">
            
                    
                    Git版本管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="../软件环境/创建一个快速开发模板.html">
            
                <a href="../软件环境/创建一个快速开发模板.html">
            
                    
                    创建一个快速开发模板
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../STM32的IO口/">
            
                <a href="../STM32的IO口/">
            
                    
                    STM32的IO口
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../STM32的IO口/点亮一个LED.html">
            
                <a href="../STM32的IO口/点亮一个LED.html">
            
                    
                    点亮一个LED
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../STM32的IO口/使用独立按键.html">
            
                <a href="../STM32的IO口/使用独立按键.html">
            
                    
                    使用独立按键
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../STM32中断/">
            
                <a href="../STM32中断/">
            
                    
                    STM32中断
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../STM32中断/CubeMX外部中断配置.html">
            
                <a href="../STM32中断/CubeMX外部中断配置.html">
            
                    
                    CubeMX外部中断配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../STM32中断/HAL库外部中断程序.html">
            
                <a href="../STM32中断/HAL库外部中断程序.html">
            
                    
                    HAL库外部中断程序
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../STM32定时器/">
            
                <a href="../STM32定时器/">
            
                    
                    STM32定时器
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../STM32定时器/定时器简单中断程序.html">
            
                <a href="../STM32定时器/定时器简单中断程序.html">
            
                    
                    定时器简单中断程序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../STM32定时器/硬件PWM输出.html">
            
                <a href="../STM32定时器/硬件PWM输出.html">
            
                    
                    硬件PWM输出
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../STM32定时器/DMA输出PWM控制WS2812.html">
            
                <a href="../STM32定时器/DMA输出PWM控制WS2812.html">
            
                    
                    DMA输出PWM控制WS2812
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../STM32串口/">
            
                <a href="../STM32串口/">
            
                    
                    STM32串口
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../STM32串口/串口发送及中断接收.html">
            
                <a href="../STM32串口/串口发送及中断接收.html">
            
                    
                    串口发送及中断接收
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../STM32串口/串口的格式化输出.html">
            
                <a href="../STM32串口/串口的格式化输出.html">
            
                    
                    串口的格式化输出
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../STM32串口/串口DMA传输.html">
            
                <a href="../STM32串口/串口DMA传输.html">
            
                    
                    串口DMA传输
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../STM32串口/简单协议编写.html">
            
                <a href="../STM32串口/简单协议编写.html">
            
                    
                    简单协议编写
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../SPI协议/">
            
                <a href="../SPI协议/">
            
                    
                    SPI协议
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../SPI协议/CubeMX配置及主要函数.html">
            
                <a href="../SPI协议/CubeMX配置及主要函数.html">
            
                    
                    CubeMX配置及主要参数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../SPI协议/OLED驱动移植.html">
            
                <a href="../SPI协议/OLED驱动移植.html">
            
                    
                    OLED驱动移植
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../SPI协议/LVGL移植显示.html">
            
                <a href="../SPI协议/LVGL移植显示.html">
            
                    
                    LVGL移植显示
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../SPI协议/Flash的使用及文件系统.html">
            
                <a href="../SPI协议/Flash的使用及文件系统.html">
            
                    
                    Flash的使用及文件系统
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="./">
            
                <a href="./">
            
                    
                    ADC的使用
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="CubeMX中ADC配置概览.html">
            
                <a href="CubeMX中ADC配置概览.html">
            
                    
                    CubeMX中ADC配置概览
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="查询阻塞方式.html">
            
                <a href="查询阻塞方式.html">
            
                    
                    查询阻塞方式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="中断方式.html">
            
                <a href="中断方式.html">
            
                    
                    中断方式
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.8.4" data-path="DMA方式.html">
            
                <a href="DMA方式.html">
            
                    
                    DMA方式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.5" data-path="应用示例.html">
            
                <a href="应用示例.html">
            
                    
                    应用示例
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../其他代码整合搬运/">
            
                <a href="../其他代码整合搬运/">
            
                    
                    其他代码整合搬运
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../其他代码整合搬运/MultiButton.html">
            
                <a href="../其他代码整合搬运/MultiButton.html">
            
                    
                    MultiButton
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../其他代码整合搬运/EasyLogger.html">
            
                <a href="../其他代码整合搬运/EasyLogger.html">
            
                    
                    EasyLogger
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="../其他代码整合搬运/letter-shell.html">
            
                <a href="../其他代码整合搬运/letter-shell.html">
            
                    
                    letter-shell
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4" data-path="../其他代码整合搬运/EasyFlash.html">
            
                <a href="../其他代码整合搬运/EasyFlash.html">
            
                    
                    EasyFlash
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.5" data-path="../其他代码整合搬运/时间片调度.html">
            
                <a href="../其他代码整合搬运/时间片调度.html">
            
                    
                    时间片调度
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../加入我们/">
            
                <a href="../加入我们/">
            
                    
                    加入我们
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="../加入我们/Gitbook环境.html">
            
                <a href="../加入我们/Gitbook环境.html">
            
                    
                    Gitbook环境
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="../加入我们/Markdown语法简介.html">
            
                <a href="../加入我们/Markdown语法简介.html">
            
                    
                    Markdown语法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.3" data-path="../加入我们/编辑器推荐.html">
            
                <a href="../加入我们/编辑器推荐.html">
            
                    
                    编辑器推荐
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.4" data-path="../加入我们/工程文件说明.html">
            
                <a href="../加入我们/工程文件说明.html">
            
                    
                    工程文件说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.5" data-path="../加入我们/提交注意事项.html">
            
                <a href="../加入我们/提交注意事项.html">
            
                    
                    提交注意事项
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>

</nav>
     
  </div>

  <!-- Content nav -->
  <div class="book-anchor">
    <div class="book-anchor-title"></div>

    <div class="book-anchor-body"></div>
  </div>

  <div class="book-body">
    
    <div class="body-inner">
       

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >DMA方式</a>
    </h1>
</div>



      <div class="page-wrapper" tabindex="-1" role="main">
        <div class="page-inner">
          
<div id="book-search-results">
    <div class="search-noresults">
    
          <section class="normal markdown-section">
             <h1 id="dma&#x7B80;&#x4ECB;">DMA&#x7B80;&#x4ECB;</h1>
<p>&#x5728;&#x524D;&#x4E24;&#x79CD;&#x65B9;&#x5F0F;&#x4E2D;&#xFF0C;&#x90FD;&#x662F;&#x7531;<strong>CPU&#x642C;&#x8FD0;&#x5916;&#x8BBE;&#x6570;&#x636E;&#x5230;&#x5185;&#x5B58;</strong>&#x7684;&#x65B9;&#x5F0F;&#xFF0C;&#x5C0F;&#x7684;&#x6570;&#x636E;&#x8FD8;&#x597D;&#xFF0C;&#x5927;&#x7684;&#x6570;&#x636E;&#x4F1A;&#x5360;&#x7528;&#x5F88;&#x957F;&#x7684;&#x5904;&#x7406;&#x5468;&#x671F;&#xFF0C;&#x5373;&#x4F7F;&#x4F7F;&#x7528;&#x4E2D;&#x65AD;&#x5904;&#x7406;&#x4E5F;&#x4F1A;&#x6709;&#x5F88;&#x591A;&#x7684;&#x4E2D;&#x65AD;&#x8BF7;&#x6C42;&#x9700;&#x8981;&#x5904;&#x7406;&#x3002;&#x90A3;&#x4E48;&#x53EF;&#x4E0D;&#x53EF;&#x4EE5;&#x8BA9;&#x5916;&#x8BBE;&#x6570;&#x636E;&#x81EA;&#x52A8;&#x8DD1;&#x5230;&#x6211;&#x4EEC;&#x6307;&#x5B9A;&#x7684;&#x5185;&#x5B58;&#x5462;&#xFF0C;&#x8FD9;&#x4E2A;&#x65F6;&#x5019;&#x5C31;&#x9700;&#x8981;&#x4F7F;&#x7528;DMA&#x4F20;&#x8F93;&#x4E86;&#x3002;</p>
<p>DMA <strong>(Direct Memory Access &#x76F4;&#x63A5;&#x5185;&#x5B58;&#x5B58;&#x53D6;)</strong>&#x662F;&#x4E00;&#x79CD;&#x53EF;&#x4EE5;&#x5927;&#x5927;&#x51CF;&#x8F7B;CPU&#x5DE5;&#x4F5C;&#x91CF;&#x7684;&#x6570;&#x636E;&#x8F6C;&#x79FB;&#x65B9;&#x5F0F;&#x3002;&#x7B80;&#x5355;&#x6765;&#x8BF4;&#x5F00;&#x59CB;DMA&#x4F20;&#x8F93;&#x540E;&#x6211;&#x4EEC;&#x5C31;&#x50CF;&#x662F;&#x7ED9;&#x6570;&#x636E;&#x4E24;&#x6BB5;&#x6253;&#x5F00;&#x4E86;&#x4E00;&#x4E2A;&#x6E9C;&#x69FD;&#xFF0C;&#x8BA9;&#x5927;&#x91CF;&#x6570;&#x636E;&#x53EF;&#x4EE5;&#x81EA;&#x52A8;&#x5730;&#x8DD1;&#x5230;&#x53E6;&#x4E00;&#x8FB9;&#xFF0C;&#x8FD9;&#x4E2A;&#x8FC7;&#x7A0B;&#x4E0D;&#x9700;&#x8981;CPU&#x7684;&#x53C2;&#x4E0E;&#x3002;&#x4EE5;ADC&#x7684;&#x503C;&#x4E3A;&#x4F8B;&#xFF1A;</p>
<p><img src="&#x56FE;&#x7247;/DMA&#x793A;&#x610F;&#x56FE;.png" alt=""></p>
<p>&#x5F53;&#x7136;&#xFF0C;DMA&#x4E0D;&#x4EC5;&#x53EF;&#x4EE5;&#x7528;&#x4E8E;&#x5916;&#x8BBE;&#x5230;&#x5185;&#x5B58;&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x81EA;&#x5B9A;&#x4E49;&#x5176;&#x4ED6;&#x65B9;&#x5411;&#xFF1A;</p>
<ul>
<li>&#x5916;&#x8BBE;&#x5230;&#x5185;&#x5B58;</li>
<li>&#x5916;&#x8BBE;&#x5230;&#x5916;&#x8BBE;</li>
<li>&#x5185;&#x5B58;&#x5230;&#x5916;&#x8BBE;</li>
<li>&#x5185;&#x5B58;&#x5230;&#x5185;&#x5B58;</li>
</ul>
<p>&#x53EF;&#x4EE5;&#x5E7F;&#x6CDB;&#x7528;&#x4E8E;LCD&#x5C4F;&#x5E55;&#x7684;&#x5237;&#x65B0;&#xFF0C;&#x5927;&#x91CF;&#x6570;&#x636E;&#x7684;&#x91C7;&#x6837;&#x5206;&#x6790;&#x7B49;&#x573A;&#x666F;&#x3002;</p>
<p>&#x672C;&#x7AE0;&#x6211;&#x4EEC;&#x5148;&#x8BD5;&#x8BD5;ADC&#x7684;DMA&#x7684;&#x4F7F;&#x7528;&#xFF0C;&#x800C;&#x4F7F;&#x7528;&#x4E86;DMA&#x7684;&#x597D;&#x5904;&#x662F;&#xFF0C;&#x91C7;&#x6837;&#x503C;&#x7684;&#x8BFB;&#x53D6;&#x4E0D;&#x9700;&#x8981;&#x6211;&#x4EEC;&#x518D;&#x53BB;&#x8C03;&#x7528;&#x51FD;&#x6570;&#x8BFB;&#x53D6;&#xFF0C;&#x8FD9;&#x4E2A;&#x65F6;&#x5019;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x653E;&#x7740;ADC&#x4E00;&#x76F4;&#x8F6C;&#x6362;&#xFF0C;&#x628A;&#x6570;&#x636E;&#x653E;&#x5230;&#x6211;&#x4EEC;&#x5B9A;&#x4E49;&#x7684;&#x4E00;&#x4E2A;&#x7F13;&#x5B58;&#x533A;&#xFF0C;&#x6211;&#x4EEC;&#x53EA;&#x9700;&#x8981;&#x5B9A;&#x65F6;&#x8BFB;&#x53D6;&#x7F13;&#x51B2;&#x533A;&#x5373;&#x53EF;</p>
<h1 id="&#x5355;&#x901A;&#x9053;adc&#x7684;dma">&#x5355;&#x901A;&#x9053;ADC&#x7684;DMA</h1>
<p>&#x5F00;&#x542F;DMA&#x4F20;&#x8F93;&#x540E;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x5BF9;&#x5355;&#x4E2A;&#x901A;&#x9053;&#x8FDB;&#x884C;&#x591A;&#x6B21;&#x7684;&#x91C7;&#x6837;&#x53D6;&#x5E73;&#x5747;&#x503C;&#xFF0C;&#x5E76;&#x4E14;&#x8FD9;&#x4E2A;&#x91C7;&#x6837;&#x7684;&#x8FC7;&#x7A0B;&#x4E0D;&#x9700;&#x8981;&#x6211;&#x4EEC;&#x7684;&#x53C2;&#x4E0E;</p>
<h2 id="&#x5355;&#x901A;&#x9053;dma&#x4F20;&#x8F93;cubemx&#x914D;&#x7F6E;">&#x5355;&#x901A;&#x9053;DMA&#x4F20;&#x8F93;CubeMX&#x914D;&#x7F6E;</h2>
<p>&#x548C;&#x963B;&#x585E;&#x65B9;&#x5F0F;&#x4EE5;&#x53CA;&#x4E2D;&#x65AD;&#x7684;&#x7565;&#x6709;&#x4E0D;&#x540C;&#xFF0C;&#x6211;&#x4EEC;&#x9700;&#x8981;&#x5148;&#x6253;&#x5F00;ADC&#x7684;DMA&#xFF1A;</p>
<p><img src="&#x56FE;&#x7247;/&#x6253;&#x5F00;DMA.png" alt=""></p>
<p>&#x5BF9;&#x5176;&#x8FDB;&#x884C;&#x4E00;&#x4E9B;&#x914D;&#x7F6E;&#xFF1A;</p>
<p><img src="&#x56FE;&#x7247;/DMA&#x914D;&#x7F6E;.png" alt=""></p>
<p>&#x5176;&#x4E2D;&#xFF1A;</p>
<ul>
<li>&#x8BF7;&#x6C42;&#x5916;&#x8BBE;&#xFF1A;&#x9ED8;&#x8BA4;&#x8BBE;&#x7F6E;&#xFF0C;&#x89C4;&#x5B9A;&#x5F53;&#x524D;&#x914D;&#x7F6E;&#x7684;DMA&#x7528;&#x4E8E;&#x54EA;&#x4E2A;&#x5916;&#x8BBE;</li>
<li>&#x4F20;&#x8F93;&#x6D41;&#xFF1A;&#x9ED8;&#x8BA4;&#x8BBE;&#x7F6E;&#xFF0C;&#x548C;ADC&#x7684;&#x6982;&#x5FF5;&#x7C7B;&#x4F3C;&#xFF0C;STM32&#x6709;&#x82E5;&#x5E72;&#x4E2A;DMA&#xFF0C;&#x6BCF;&#x4E2A;DMA&#x6709;&#x82E5;&#x5E72;&#x4E2A;&#x6570;&#x636E;&#x91CF;&#x53EF;&#x4EE5;&#x7528;&#x4E8E;&#x914D;&#x7F6E;&#x4F20;&#x8F93;</li>
<li>&#x4F20;&#x8F93;&#x65B9;&#x5411;&#xFF1A;&#x81EA;&#x5B9A;&#x4E49;&#xFF0C;&#x53EF;&#x4EE5;&#x9009;&#x62E9;&#x662F;&#x628A;&#x5916;&#x8BBE;&#x7684;&#x6570;&#x636E;&#x79FB;&#x52A8;&#x5185;&#x5B58;&#x8FD8;&#x662F;&#x6C38;&#x5185;&#x5B58;&#x901A;&#x8FC7;DMA&#x4F20;&#x8F93;&#x66F4;&#x65B0;&#x5230;&#x5916;&#x8BBE;</li>
<li><p>&#x4F18;&#x5148;&#x7EA7;&#xFF1A;&#x5F53;&#x4F7F;&#x7528;&#x4E86;&#x540C;&#x4E2A;DMA&#x5E76;&#x4E14;&#x540C;&#x65F6;&#x6709;&#x4F20;&#x8F93;&#x8BF7;&#x6C42;&#x65F6;&#xFF0C;&#x4F18;&#x5148;&#x5904;&#x7406;&#x54EA;&#x4E00;&#x4E2A;</p>
</li>
<li><p>&#x4F20;&#x8F93;&#x6A21;&#x5F0F;&#xFF1A;&#x53EF;&#x4EE5;&#x8BBE;&#x7F6E;&#x53EA;&#x4F20;&#x8F93;&#x4E00;&#x6B21;&#x8FD8;&#x662F;&#x4E00;&#x76F4;&#x4F20;&#x8F93;</p>
</li>
<li>&#x5730;&#x5740;&#x81EA;&#x52A8;&#x7D2F;&#x52A0;&#xFF1A;&#x4F20;&#x8F93;&#x5982;&#x6570;&#x7EC4;&#x4E00;&#x7C7B;&#x6570;&#x636E;&#x65F6;&#xFF0C;&#x53EF;&#x4EE5;&#x9010;&#x4E2A;&#x53D1;&#x9001;</li>
<li>&#x6570;&#x636E;&#x5BBD;&#x5EA6;&#xFF1A;&#x901A;&#x5E38;&#x548C;&#x5916;&#x8BBE;&#x7684;&#x6570;&#x636E;&#x7A0B;&#x5EA6;&#x5BF9;&#x5E94;&#xFF0C;&#x5982;ADC&#x7684;&#x8FD4;&#x56DE;&#x503C;&#x662F;&#x4E00;&#x4E2A;16bit&#x7684;&#x6570;&#x636E;</li>
</ul>
<p>&#x63A5;&#x7740;&#x914D;&#x7F6E;ADC&#x7684;<strong>&#x8FDE;&#x7EED;&#x8F6C;&#x6362;</strong>&#x6A21;&#x5F0F;&#x4EE5;&#x53CA;<strong>&#x4F7F;&#x80FD;DMA&#x8BF7;&#x6C42;</strong>&#xFF1A;</p>
<p><img src="&#x56FE;&#x7247;/DMA&#x5355;&#x901A;&#x9053;&#x914D;&#x7F6E;.png" alt=""></p>
<p>&#x53E6;&#x5916;&#xFF0C;&#x9700;&#x8981;&#x68C0;&#x67E5;&#x4EE3;&#x7801;&#x751F;&#x6210;&#x65F6;&#xFF0C;DMA&#x7684;&#x521D;&#x59CB;&#x5316;&#x662F;&#x5426;&#x5728;ADC&#x4E4B;&#x524D;&#xFF0C;&#x5982;&#x679C;&#x4E0D;&#x5728;&#x53EF;&#x4EE5;&#x6309;&#x5982;&#x4E0B;&#x65B9;&#x5F0F;&#x8C03;&#x6574;&#xFF1A;</p>
<p><img src="&#x56FE;&#x7247;/DMA&#x521D;&#x59CB;&#x5316;&#x987A;&#x5E8F;&#x8C03;&#x6574;.png" alt=""></p>
<h2 id="&#x4EE3;&#x7801;&#x7F16;&#x5199;">&#x4EE3;&#x7801;&#x7F16;&#x5199;</h2>
<p>&#x5B9A;&#x4E49;&#x4E00;&#x4E2A;&#x7F13;&#x51B2;&#x533A;&#x7528;&#x4E8E;&#x5B58;&#x653E;&#x91C7;&#x6837;&#x503C;&#xFF0C;<strong>&#x5EFA;&#x8BAE;&#x91C7;&#x6837;&#x6570;&#x5927;&#x4E8E;20</strong>&#xFF0C;&#x56E0;&#x4E3A;DMA&#x65B9;&#x5F0F;&#x8BFB;&#x53D6;&#x65F6;&#x4E5F;&#x4F1A;&#x4EA7;&#x751F;&#x5927;&#x91CF;&#x7684;&#x4E2D;&#x65AD;&#x8BF7;&#x6C42;&#xFF0C;&#x5982;&#x679C;&#x91C7;&#x6837;&#x6570;&#x592A;&#x5C11;&#x4E3B;&#x7EBF;&#x7A0B;&#x4F1A;&#x56E0;&#x4E3A;&#x4E00;&#x76F4;&#x54CD;&#x5E94;&#x8BF7;&#x6C42;&#x800C;&#x5361;&#x6B7B;&#xFF1A;</p>
<pre><code class="lang-c"><span class="hljs-comment">/* USER CODE BEGIN PFP */</span>
<span class="hljs-meta">#<span class="hljs-meta-keyword">define</span> BUF_LEN 100</span>
<span class="hljs-keyword">uint16_t</span> adcValue[BUF_LEN] = {<span class="hljs-number">0</span>};
<span class="hljs-comment">/* USER CODE END PFP */</span>
</code></pre>
<p>&#x5728;&#x4E3B;&#x51FD;&#x6570;&#x4E2D;&#x8C03;&#x7528;&#x4E00;&#x6B21;DMA&#x5373;&#x53EF;&#xFF0C;&#x4F7F;&#x7528;<code>HAL_ADC_Start_DMA()</code>&#x51FD;&#x6570;&#xFF0C;&#x8BE5;&#x51FD;&#x6570;&#x548C;&#x4E4B;&#x524D;&#x7684;&#x4F20;&#x8F93;&#x51FD;&#x6570;&#x5F88;&#x50CF;&#xFF0C;&#x5206;&#x522B;&#x662F;<strong>&#x53E5;&#x67C4;&#x3001;&#x63A5;&#x6536;&#x7F13;&#x5B58;&#x533A;&#x3001;&#x957F;&#x5EA6;</strong>&#xFF0C;&#x800C;while(1)&#x4E2D;100ms&#x8BA1;&#x7B97;&#x4E00;&#x6B21;&#x91C7;&#x6837;&#x7684;&#x5E73;&#x5747;&#x503C;&#xFF1A;</p>
<pre><code class="lang-c">  <span class="hljs-keyword">uint32_t</span> adcAvg = <span class="hljs-number">0</span>;
  HAL_ADC_Start_DMA(&amp;hadc1, (<span class="hljs-keyword">uint32_t</span> *)adcValue, BUF_LEN);
  <span class="hljs-keyword">while</span> (<span class="hljs-number">1</span>)
  {
    <span class="hljs-keyword">for</span> (<span class="hljs-keyword">int</span> i = <span class="hljs-number">0</span>; i &lt; BUF_LEN; i++)
      adcAvg += adcValue[i];
    adcAvg = adcAvg / BUF_LEN;
    log_i(<span class="hljs-string">&quot;adc: %d &gt;&gt; %dmv&quot;</span>, adcAvg, (<span class="hljs-keyword">int</span>)(adcAvg * <span class="hljs-number">0.805</span>));
    HAL_Delay(<span class="hljs-number">500</span>);
    <span class="hljs-comment">/* USER CODE END WHILE */</span>

    <span class="hljs-comment">/* USER CODE BEGIN 3 */</span>
  }
</code></pre>
<p>&#x6D4B;&#x8BD5;&#x6548;&#x679C;&#x5982;&#x4E0B;&#xFF1A;</p>
<p><img src="&#x56FE;&#x7247;/ADC&#x5355;&#x901A;&#x9053;DMA&#x65B9;&#x5F0F;.png" alt=""></p>
<h1 id="&#x591A;&#x901A;&#x9053;adc&#x7684;dma">&#x591A;&#x901A;&#x9053;ADC&#x7684;DMA</h1>
<p>&#x591A;&#x901A;&#x9053;&#x7C7B;&#x4F3C;&#xFF0C;&#x76F4;&#x63A5;&#x4E0A;&#x6559;&#x7A0B;&#xFF1A;</p>
<h2 id="&#x591A;&#x901A;&#x9053;dma&#x4F20;&#x8F93;cubemx&#x914D;&#x7F6E;">&#x591A;&#x901A;&#x9053;DMA&#x4F20;&#x8F93;CubeMX&#x914D;&#x7F6E;</h2>
<p>&#x548C;&#x963B;&#x585E;&#x4EE5;&#x53CA;&#x4E2D;&#x65AD;&#x65B9;&#x5F0F;&#x4E00;&#x6837;&#xFF0C;&#x9700;&#x8981;&#x6253;&#x5F00;&#x626B;&#x63CF;&#x6A21;&#x5F0F;&#x4EE5;&#x53CA;DMA&#x76F8;&#x5173;&#x7684;&#x8FDE;&#x7EED;&#x8F6C;&#x6362;&#x548C;DMA&#x8BF7;&#x6C42;&#xFF0C;&#x4EE5;&#x53CA;&#x914D;&#x7F6E;&#x76F8;&#x5E94;&#x901A;&#x9053;&#xFF1A;</p>
<blockquote>
<p><strong>&#x518D;&#x6B21;&#x63D0;&#x9192;&#xFF0C;ADC&#x60AC;&#x7A7A;&#x65F6;&#x4F1A;&#x53D1;&#x751F;&#x4E32;&#x6270;&#xFF0C;&#x6B64;&#x65F6;&#x6D4B;&#x7684;&#x503C;&#x4E0D;&#x51C6;</strong></p>
</blockquote>
<p><img src="&#x56FE;&#x7247;/ADC&#x591A;&#x901A;&#x9053;DMA&#x914D;&#x7F6E;.png" alt=""></p>
<h2 id="&#x4EE3;&#x7801;&#x7F16;&#x5199;">&#x4EE3;&#x7801;&#x7F16;&#x5199;</h2>
<p>&#x548C;&#x5355;&#x901A;&#x9053;&#x76F8;&#x6BD4;&#xFF0C;&#x9700;&#x8981;&#x5206;&#x522B;&#x8BA1;&#x7B97;&#x591A;&#x4E2A;&#x901A;&#x9053;&#x7684;&#x91C7;&#x6837;&#x5E73;&#x5747;&#x503C;&#xFF0C;&#x7B80;&#x5355;&#x9A8C;&#x8BC1;&#x4EE3;&#x7801;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code class="lang-c"><span class="hljs-comment">/* USER CODE BEGIN WHILE */</span>
  <span class="hljs-keyword">uint32_t</span> adcAvg[<span class="hljs-number">4</span>] = {<span class="hljs-number">0</span>};
  HAL_ADC_Start_DMA(&amp;hadc1, (<span class="hljs-keyword">uint32_t</span> *)adcValue, BUF_LEN);
  <span class="hljs-keyword">while</span> (<span class="hljs-number">1</span>)
  {
    <span class="hljs-keyword">for</span> (<span class="hljs-keyword">int</span> i = <span class="hljs-number">0</span>; i &lt; BUF_LEN; i += <span class="hljs-number">4</span>)
    {
      adcAvg[<span class="hljs-number">0</span>] += adcValue[i];
      adcAvg[<span class="hljs-number">1</span>] += adcValue[i + <span class="hljs-number">1</span>];
      adcAvg[<span class="hljs-number">2</span>] += adcValue[i + <span class="hljs-number">2</span>];
      adcAvg[<span class="hljs-number">3</span>] += adcValue[i + <span class="hljs-number">3</span>];
    }
    <span class="hljs-keyword">for</span>(<span class="hljs-keyword">int</span> i = <span class="hljs-number">0</span>; i &lt; <span class="hljs-number">4</span>; i++)
    {
      adcAvg[i] = adcAvg[i] * <span class="hljs-number">4</span> / BUF_LEN;
      log_i(<span class="hljs-string">&quot;adc%d: %d &gt;&gt; %dmv&quot;</span>, i, adcAvg[i], (<span class="hljs-keyword">int</span>)(adcAvg[i] * <span class="hljs-number">0.805</span>));
      adcAvg[i] = <span class="hljs-number">0</span>;
    }
    log_i(<span class="hljs-string">&quot;complete\n\n&quot;</span>);
    HAL_Delay(<span class="hljs-number">500</span>);
    <span class="hljs-comment">/* USER CODE END WHILE */</span>

    <span class="hljs-comment">/* USER CODE BEGIN 3 */</span>
  }
</code></pre>
<p>&#x6548;&#x679C;&#x5982;&#x4E0B;&#xFF1A;</p>
<p><img src="&#x56FE;&#x7247;/ADC&#x591A;&#x901A;&#x9053;DMA&#x65B9;&#x5F0F;.png" alt=""></p>
<h1 id="one-more-thing">One more thing</h1>
<h2 id="&#x7ED9;adc&#x7684;dma&#x6D4B;&#x4E2A;&#x901F;">&#x7ED9;ADC&#x7684;DMA&#x6D4B;&#x4E2A;&#x901F;</h2>
<p>&#x6211;&#x4EEC;&#x5728;&#x4E2D;&#x65AD;&#x4E2D;&#x8BBE;&#x7F6E;&#x4E00;&#x4E2A;times&#x7528;&#x4E8E;&#x8BA1;&#x6570;&#xFF0C;&#x8BA1;&#x7B97;&#x4E00;&#x79D2;&#x5185;ADC&#x80FD;&#x5B8C;&#x6210;&#x591A;&#x5C11;&#x6B21;&#x8F6C;&#x6362;&#xFF1A;</p>
<p>&#x5728;&#x53EF;&#x4EE5;ADC&#x7684;DMA&#x4F20;&#x8F93;&#x5B9E;&#x73B0;&#x7684;&#x57FA;&#x7840;&#x4E0B;&#xFF0C;&#x63A5;&#x6536;&#x957F;&#x5EA6;&#x6539;&#x4E3A;10&#xFF0C;&#x5B9A;&#x4E49;&#x4E00;&#x4E2A;times&#x7528;&#x4E8E;&#x8BA1;&#x6570;&#xFF1B;&#x5728;while(1)&#x4E2D;&#x5B9A;&#x65F6;&#x8BA1;&#x7B97;&#x6253;&#x5370;&#xFF1B;&#x5728;&#x56DE;&#x8C03;&#x51FD;&#x6570;&#x4E2D;&#x8BA1;&#x6570;&#x3002;</p>
<p>&#x5B9A;&#x4E49;&#x5982;&#x4E0B;&#x5168;&#x5C40;&#x53D8;&#x91CF;&#xFF1A;</p>
<pre><code class="lang-c"><span class="hljs-comment">/* USER CODE BEGIN PFP */</span>
<span class="hljs-meta">#<span class="hljs-meta-keyword">define</span> BUF_LEN 10</span>
<span class="hljs-keyword">uint16_t</span> adcValue[BUF_LEN] = {<span class="hljs-number">0</span>};
<span class="hljs-keyword">uint32_t</span> times = <span class="hljs-number">0</span>;
<span class="hljs-comment">/* USER CODE END PFP */</span>
</code></pre>
<p>&#x5728;&#x4E3B;&#x51FD;&#x6570;&#x91CC;&#xFF1A;</p>
<pre><code class="lang-c">HAL_ADC_Start_DMA(&amp;hadc1, (<span class="hljs-keyword">uint32_t</span> *)adcValue, BUF_LEN);
  <span class="hljs-keyword">while</span> (<span class="hljs-number">1</span>)
  {
    log_i(<span class="hljs-string">&quot;times = %d\n&quot;</span>, times * BUF_LEN);
    times = <span class="hljs-number">0</span>;
    HAL_Delay(<span class="hljs-number">1000</span>);
    <span class="hljs-comment">/* USER CODE END WHILE */</span>

    <span class="hljs-comment">/* USER CODE BEGIN 3 */</span>
  }
</code></pre>
<p>&#x5728;&#x56DE;&#x8C03;&#x51FD;&#x6570;&#x4E2D;&#xFF1A;</p>
<pre><code class="lang-c"><span class="hljs-comment">/* USER CODE BEGIN 4 */</span>
<span class="hljs-function"><span class="hljs-keyword">void</span> <span class="hljs-title">HAL_ADC_ConvCpltCallback</span><span class="hljs-params">(ADC_HandleTypeDef *hadc)</span>
</span>{
  times++;
}
<span class="hljs-comment">/* USER CODE END 4 */</span>
</code></pre>
<p>&#x6D4B;&#x8BD5;&#x7ED3;&#x679C;&#xFF1A;</p>
<p><img src="&#x56FE;&#x7247;/DMA&#x6D4B;&#x901F;.png" alt=""></p>
<p>&#x53EF;&#x4EE5;&#x770B;&#x5230;&#xFF0C;ADC&#x5728;&#x5F53;&#x524D;&#x914D;&#x7F6E;&#x4E0B;&#x6BCF;&#x79D2;&#x53EF;&#x4EE5;&#x5B8C;&#x6210;1.4M&#x6B21;&#x8F6C;&#x6362;&#xFF0C;&#x8FD9;&#x4E2A;&#x6570;&#x636E;&#x91CF;&#x662F;&#x76F8;&#x5F53;&#x60CA;&#x4EBA;&#x7684;&#x3002;&#x5982;&#x679C;&#x4FDD;&#x6301;&#x90A3;&#x4E48;&#x9AD8;&#x7684;&#x4E00;&#x4E2A;&#x91C7;&#x6837;&#x901F;&#x7387;&#xFF0C;&#x9700;&#x8981;&#x5927;&#x91CF;&#x7684;&#x7F13;&#x5B58;&#x6216;&#x8005;&#x9AD8;&#x901F;&#x7684;&#x5904;&#x7406;&#x9891;&#x7387;&#xFF0C;&#x8FD9;&#x5BF9;&#x7B80;&#x5355;&#x5B9E;&#x7528;&#x573A;&#x666F;&#x6765;&#x8BF4;&#x6709;&#x70B9;&#x5927;&#x6750;&#x5C0F;&#x7528;&#x3002;</p>
<p>&#x56E0;&#x6B64;&#xFF0C;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x6539;&#x53D8;&#x5206;&#x9891;&#x6570;&#x6216;&#x5EF6;&#x957F;&#x91C7;&#x6837;&#x65F6;&#x95F4;&#x6765;&#x964D;&#x4F4E;&#x901F;&#x5EA6;&#xFF0C;&#x63D0;&#x9AD8;&#x7A33;&#x5B9A;&#x6027;&#xFF1A;</p>
<p><img src="&#x56FE;&#x7247;/ADC&#x964D;&#x901F;.png" alt=""></p>
<h2 id="&#x66F4;&#x597D;&#x7684;&#x89E6;&#x53D1;&#x65B9;&#x5F0F;">&#x66F4;&#x597D;&#x7684;&#x89E6;&#x53D1;&#x65B9;&#x5F0F;</h2>
<p>&#x76F4;&#x5230;&#x76EE;&#x524D;&#xFF0C;&#x6240;&#x6709;&#x7684;ADC&#x8F6C;&#x6362;&#x90FD;&#x662F;&#x8F6F;&#x4EF6;&#x89E6;&#x53D1;&#x7684;&#xFF0C;&#x8FD9;&#x5728;&#x4E00;&#x4E9B;&#x65F6;&#x95F4;&#x7CBE;&#x5EA6;&#x9AD8;&#x7684;&#x573A;&#x666F;&#x4E0D;&#x662F;&#x5F88;&#x597D;&#xFF0C;&#x56E0;&#x6B64;&#x53EF;&#x4EE5;&#x9009;&#x7528;&#x5B9A;&#x65F6;&#x5668;&#x89E6;&#x53D1;&#x7684;&#x65B9;&#x5F0F;&#xFF0C;&#x8FD9;&#x4E9B;&#x5185;&#x5BB9;&#x4F1A;&#x5728;<a href="&#x5E94;&#x7528;&#x793A;&#x4F8B;.html">&#x5E94;&#x7528;&#x793A;&#x4F8B;&#x7AE0;&#x8282;</a>&#x6559;&#x7ED9;&#x5927;&#x5BB6;&#x3002;</p>
 
          </section>
          
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>
 
        </div>
      </div>
      
    </div>

     
    <a
      href="中断方式.html"
      class="
        navigation navigation-prev
        
      "
      aria-label="Previous page: 中断方式"
    >
      <i class="fa fa-angle-left"></i>
    </a>
     
    <a
      href="应用示例.html"
      class="
        navigation navigation-next
        
      "
      aria-label="Next page: 应用示例"
    >
      <i class="fa fa-angle-right"></i>
    </a>
      
  </div>
  <script>
    function showModal() {
      document.getElementsByClassName("mask")[0].style.display = "block";
      document.getElementsByClassName("donate-modal")[0].style.display =
        "block";
    }
    // 切换赞赏码
    function showDonateImg(num) {
      let alipay = "";
      let wxpay = ""
      if(num){
        wxpay = "hidden"
      }else{
        alipay = "hidden"
      }
      document.getElementById("wxpay-code").hidden = wxpay;
      document.getElementById("alipay-code").hidden = alipay;
      document.getElementsByName("pay-way")[num].checked = "checked";
    }

    // 关闭赞赏框
    function closeDonateModal() {
      document.getElementsByClassName("mask")[0].style.display = "none";
      document.getElementsByClassName("donate-modal")[0].style.display = "none";
    }

    var gitbook = gitbook || [];
    gitbook.push(function () {
      gitbook.page.hasChanged({"page":{"title":"DMA方式","level":"1.8.4","depth":2,"next":{"title":"应用示例","level":"1.8.5","depth":2,"path":"ADC的使用/应用示例.md","ref":"./ADC的使用/应用示例.md","articles":[]},"previous":{"title":"中断方式","level":"1.8.3","depth":2,"path":"ADC的使用/中断方式.md","ref":"./ADC的使用/中断方式.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-lunr","-sharing","-search","-favicon","-code","expandable-chapters","theme-lou","back-to-top-button","search-pro","livereload"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"livereload":{},"search-pro":{},"code":{"copyButtons":true},"theme-lou":{"hide-elements":[".summary .gitbook-link"],"color":"#8abcd1","copyright":{"author":"Atonidas"},"forbidCopy":false,"logo":"assets/logo.png","search-placeholder":"查找关键内容","copyrightLogo":"assets/copyright.png","favicon":"assets/favicon.ico","autoNumber":3},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"back-to-top-button":{},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"theme":"default","author":"Atonidas","lang":"zh-cn","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{"themeLou":{"nav":[{"target":"_blank","url":"https://Gitee.com/atonidas","name":"Gitee"}]}},"title":"STM32HAL系列教程","gitbook":"*","description":"Gitbook电子书示例项目"},"file":{"path":"ADC的使用/DMA方式.md","mtime":"2023-04-04T06:18:13.007Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2023-09-13T00:50:24.020Z"},"basePath":"..","book":{"language":""}});
    });
  </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-back-to-top-button/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-theme-lou/lou.js"></script>
        
    

    </body>
</html>

